import React from 'react';
import styled from 'styled-components';

const Nav = styled.nav`
  background-color: #f2f2f2;
  padding: 10px;
`;

const Ul = styled.ul`
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
`;

const Li = styled.li`
  margin-right: 10px;
`;

const Link = styled.a`
  color: #333;
  text-decoration: none;
  padding: 5px;
  border-radius: 4px;

  &:hover {
    background-color: #ddd;
  }
`;

function About() {
  return (
    <Nav>
      <Ul>
        <Li>
          <Link href="/">Home</Link>
        </Li>
        <Li>
          <Link href="/about">About</Link>
        </Li>
        <Li>
          <Link href="/services">Services</Link>
        </Li>
        <Li>
          <Link href="/contact">Contact</Link>
        </Li>
      </Ul>
    </Nav>
  );
}

export default About;
